package com.shop.cereshop.commons.domain.map;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "OffsetBoundsResp", description = "矩形经纬度串响应")
public class OffsetBoundsResp {

    @ApiModelProperty("点位名称")
    private String pointName;


    @ApiModelProperty("点位描述")
    private String pointDesc;

    @ApiModelProperty("中心经度")
    private Double centerLng;

    @ApiModelProperty("中心纬度")
    private Double centerLat;

    @ApiModelProperty("最西经度")
    private Double westLng;

    @ApiModelProperty("最东经度")
    private Double eastLng;

    @ApiModelProperty("最北纬度")
    private Double northLat;

    @ApiModelProperty("最南纬度")
    private Double southLat;


    @ApiModelProperty("多边形经纬度串：西北→东北→东南→西南，lng,lat;...")
    private String coordString;

    @ApiModelProperty("矢量图片")
    private String vectorImage;


    public void setVectorImage() {
        this.vectorImage = "https://restapi.amap.com/v3/staticmap?location=" + this.centerLng + "," + this.centerLat + "&zoom=18&size=550*200&markers=mid,,:" + this.centerLng + "," + this.centerLat + "&key=fe1c353ec3eeaecde8cbbccebd292638";
    }


}


